﻿<%@ Control Language="c#" AutoEventWireup="false" Inherits="Web.Control.Member.Message.Inbox" %>
<input type="hidden" name="delMID" value="0" id="delMID" />
<asp:Literal ID="litCount" Text="15" runat="server" Visible="false"/>
<div class="common">
	<div id="new_body">
		<div id="body_900">
				<div class="submenu3"></div>
			<div id="body_left"></div>
			<div id="body_main">
			    <div id="MessagesBox" style="display:<%=delflag==1?"block":"none" %>">
					<div class="MessagePanel4">
						<img id="MessageImg" src="/images/ico_info.gif" style="border-width: 0px;" alt=""/>
						<div id="MessageText"><%=GetText("C1004")%></div>
					</div>
				</div>				
				<div class="submenuN">
					<div class="submenuN_position">
						<div class="submenuN_title">
							<div class="submenuN_Btitle">
								<h1><%=GetText("M0020")%></h1>
							</div>
							<div class="submenuN_button">
								<!--div class="layer_contentA" style="background-color:#fff">
									<h4>My italki</h4>
									<div class="layer_contentA5"><a href="/">My Home</a><br /><a href="/public/profile.htm">My Profile</a><br /><a href="/my/settings/generalsettings.htm">Settings</a>
									<hr size="1" color="#cccccc" /><a href="/my/my_finance.htm">My Finance</a><br /><a href="/my/my_courses.htm">My Sessions</a><br /><a href="/my/my_feedback.htm">My Feedback</a>
									<hr size="1" color="#cccccc" /><strong>> <%=GetText("M0020")%></strong><br /><a href="/contacts/mycontacts.htm">Requests</a><br /><a href="/widgets/badges.htm">Widgets</a><br /><a href="/contacts/mycontacts.htm">My Friends</a><br /><a href="/my/my_group.htm">My Groups</a>
									<hr size="1" color="#cccccc" /><a href="/my/my_courses.htm">My Courses</a><br /><a href="/my/my_answers.htm">My Q&A</a><br /><a href="/my/my_answers.htm">My Knowledge</a><br /><a href="/my/my_answers.htm">My Documents</a><br /><a href="/my/my_answers.htm">My Posts</a></div>
								</div-->
							</div>
						</div>
					</div>
				</div>
				<div>
					<ul class="sort_sel">
						<li class="first selATags" style="cursor:pointer"><span><a href="/mail/inbox.htm">Inbox</a></span></li>
						<li class="" style="cursor:pointer"><span><a href="/mail/outbox.htm">Sent Messages</a></span></li>
						<li class="" style="cursor:pointer"><span><a href="/mail/notifications.htm">Notifications</a></span></li>
						<li class="" style="cursor:pointer"><span><a href="/mail/blackboard.htm">Blackboard</a></span></li>
						<li class="" style="cursor:pointer"><span><%if (((Lx.Web.Common.UI.TDTPageBase)Page).IsAffirm){%><a href="/mail/compose.htm">Compose new message</a><%}else{ %><a href="#" onclick="NotAffirm()">Compose new message</a><%} %></span></li>
					</ul>
					<div class="clear"></div>
					<!--popular latest-->
				</div>
				<div class="Center9001n">
					<div class="Center9001common">
						<div class="Center9001Content">
							<div class="inbox_area">
								<div>
									<div class="floatl"><strong><%=GetText("ML007")%>: </strong><a href="javascript:void(0);" onclick="selMail('4')"><%=GetText("ML009")%></a>&nbsp;|&nbsp;<a href="javascript:void(0);" onclick="selMail('1')"><%=GetText("ML008")%></a></div>
									<div class="floatr">
										<div id="showDELDiv" style="display:none"><a href="#" onclick="DelPM(-1)"><%=GetText("C0050")%></a></div>
										<div id="hideDelDiv" class="grey12"><%=GetText("C0050")%></div>
									</div>
									<div class="clear"></div>
							    </div>
								<div class="inbox_list">
									<div id="MailListID">
									<asp:Repeater ID="rptList" runat="server">
										<ItemTemplate>
											<table id="tbID_<%#Eval("PM_ID")%>" width="870" border="0" cellspacing="0" cellpadding="0" class='<%#((bool)Eval("Read_Post"))?"Read":"noRead"%>'>
												<tr>
													<td width="20" align="center" valign="top" onclick="setDelState()"><input type="checkbox" id="ck_<%#Eval("PM_ID")%>" value='<%#((bool)Eval("Read_Post"))?"1":"0"%>' /></td>
													<td width="70" valign="top"><div class="pic50" style=" margin:0 auto; width:50px"><a href="/<%#IsShowInfo(Eval("FromNo").ToString(),Eval("FromNo").ToString(),Eval("ToNo").ToString()) %>.htm"  class="photo_50" title="<%#IsShowInfo(Eval("FromNo").ToString(),Eval("FromNickName").ToString(),Eval("ToNickName").ToString()) %>"><img alt="<%#IsShowInfo(Eval("FromNo").ToString(),Eval("FromNickName").ToString(),Eval("ToNickName").ToString()) %>" src='<%#(IsShowInfo(Eval("FromNo").ToString(),Eval("FromAvatar").ToString(),Eval("ToAvatar").ToString())==""?"/Images/no_pic.gif":IsShowInfo(Eval("FromNo").ToString(),Eval("FromAvatar").ToString(),Eval("ToAvatar").ToString()))%>' border="0" /></a></div>
													</td>
													<td width="140" valign="top"><%=GetText("C0003")%> <a href='/<%#IsShowInfo(Eval("FromNo").ToString(),Eval("FromNo").ToString(),Eval("ToNo").ToString())%>.htm'><%#IsShowInfo(Eval("FromNo").ToString(), Eval("FromNickName").ToString(), Eval("ToNickName").ToString())%></a><br /><span class="grey10"><%#FormatDiffDate(GetText("C0036"), Eval("DiffLastUpdate").ToString())%></span></td>
													<td width="20" valign="top">														<%#((bool)Eval("Read_Post")) ? "<img id='img_" + Eval("PM_ID").ToString() + "' src='/Images/icon_mail_read.gif' align='absmiddle' />" : "<img id='img_" + Eval("PM_ID").ToString() + "' src='/Images/icon_mail_none.gif' align='absmiddle' />"%></td>
													<td width="600" valign="top"><%#((bool)Eval("Read_Post"))?"":"<span class='text14'><strong>"%><a href='/mail/readmail.htm?ID=<%#Eval( "PM_ID")%>&flag=in&ACount=<%#RecordCount%>&CNo=<%#CurrCount() %>'><%#HttpUtility.HtmlEncode(Eval("PM_Tittle").ToString())%></a><%#((bool)Eval("Read_Post"))?"":"</strong></span>"%><p class="grey12"><%#Lx.Web.Common.UI.Globals.GetString(Lx.Web.Common.UI.Globals.HtmlStrippedText(Eval("NewReplyMes").ToString()==""?Eval("PM_Message").ToString():Eval("NewReplyMes").ToString()),100)%></p></td>
													<td width="20" valign="top"><a href="#" onclick="DelPM(<%#Eval("PM_ID") %>)"><img src="/Images/board_delete.gif" alt="<%=GetText("C0050")%>"  border="0"/></a></td>
												</tr>
											</table>
										</ItemTemplate>
									</asp:Repeater>
									</div>
								</div>
								<div id="divPage" class="page_num">
								<%=CreatePageNav(RecordCount, int.Parse(litCount.Text), PageIndex, "",
									string.Format("<span class='page_none grey10'><a href='{0}/mail/inbox-$I$.htm'>{1}</a></span>&nbsp;", WWWHost,HttpUtility.UrlEncode(GetText("Prev"))),
									"",
									string.Format("<span class='page_none grey10'><a href='{0}/mail/inbox-$I$.htm'>{1}</a></span>&nbsp;", WWWHost,HttpUtility.UrlEncode(GetText("Next"))),
									string.Format("<span class='page_select'>{0}</span>&nbsp;", PageIndex),
									string.Format("<span class='page_none grey10'><a href='{0}/mail/inbox-$I$.htm'>$I$</a></span>&nbsp;",WWWHost)
								)%>									
								</div>
								<div id="divDelOp" style=" text-align:center">
									<%if (RecordCount <= 0)
									  {%>
										<div class="error_yellow" style="margin-bottom: 30px"><%=GetText("ML300")%></div>
									<%} %>
								</div>
							</div>
						</div>
					</div>
					<div class="clear"></div>
				</div>
			</div>
			<div id="body_right"></div>
			<div class="clear"></div>
		</div>
		<div id="body_900F"></div>
	</div>
</div>
<script>
var mesText1="<%=GetText("C1002")%>";
var mesText2="<%=GetText("CT046")%>";
var C1008="<%=GetText("C1008") %>";
var C0069 = '<%=GetText("C0069")%>';
var gCancel = "<%=GetText("C0056")%>";
</script>
